a = [11, 22, 33, 44, 55, 66, 77]

b = []

for i in a:
    if i == 33 or i == 44:
        b.append(i)

print(b)  # [33, 44]

for i in a:
    if i == 33 or i == 44:
        a.remove(i)

print(a)  # [11, 22, 44, 55, 66, 77]

a = [11, 22, 33, 44, 55, 66, 77]

for i in b:
    if i == 33 or i == 44:
        a.remove(i)

print(a)  # [11, 22, 55, 66, 77]
